package com.life.view;

import javax.swing.ButtonGroup;
import javax.swing.JRadioButton;

public class RadioGroupAdapter extends AbstractAdapter {

	ButtonGroup theRadioGroup = null;
	
	public RadioGroupAdapter(ButtonGroup group)
	{
		
	}
	
	public int getCount()
	{
		return theRadioGroup.getButtonCount();
	}
	
	public void setButtonText(int i, String text)
	{
		
	}
	
	public String getSelected()
	{
		if(theRadioGroup.getSelection() != null)
		{
			return ((JRadioButton)theRadioGroup.getSelection()).getText();
		}
		return "";
	}
	
	@Override
	public Object get() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setEnabled(boolean value) {
		// TODO Auto-generated method stub

	}

	@Override
	public void set(Object data) {
		// TODO Auto-generated method stub
		
	}

}
